//
//  MeatSearchErrorOrEmptyTableViewCell.m
//  PigMarket
//
//  Created by 张敬 on 2019/8/29.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import "MeatSearchErrorOrEmptyTableViewCell.h"

@implementation MeatSearchErrorOrEmptyTableViewCell

- (void)setupUI{
    
    [self addSubview:self.reloadBtn];
    [self addSubview:self.reloadLab];
}

- (void)setupLayout
{
    _reloadBtn.mj_x = (KScreenWidth-_reloadBtn.width)/2.0;
    _reloadBtn.centerY = KScreenHeight/2.0-TJ_NavBarHeight - TJ_SafeAreaBottomHeight;
    _reloadLab.mj_y = _reloadBtn.bottom + 20;
}

#pragma mark - lifecycle methods
#pragma mark - networking methods
#pragma mark - response methods
#pragma mark - public methods
#pragma mark - tableview.delegate methods
#pragma mark - tableview.datasource methods
#pragma mark - setter methods
#pragma mark - getter methods

- (UIButton *)reloadBtn{
    
    if (!_reloadBtn) {
        
        _reloadBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        _reloadBtn.frame = CGRectMake(0, 0, 158, 132);
        [_reloadBtn setBackgroundImage:[UIImage imageNamed:@"meat_tranfer_blank"] forState:UIControlStateNormal];
    }
    return _reloadBtn;
}


- (UILabel *)reloadLab{
    
    if (!_reloadLab) {
        _reloadLab = [UILabel makeLabelWithText:@"暂无数据" textColor:UIColorFromRGB(0xB0B0B0) font:mFont(13) textAliment:1];
        _reloadLab.numberOfLines = 0;
        _reloadLab.size = CGSizeMake(200, 36);
        _reloadLab.mj_x = (KScreenWidth - _reloadLab.width)/2.0;
        
    }
    return _reloadLab;
}


@end
